public class SharedVariable1 {
    volatile private int abc = 0;

    public int action(int v) {
        if (v == 3) {
            abc = v;
        }

        return abc;
    }

}
